#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/3/11


import time, threading


def run(n):
    time.sleep(3)
    print("form child")
    return n ** n


t = threading.Thread(target=run, args=[8, ])
t.start()
t.join()  # 主线程会等待当前子线程执行完毕

print("---from main----")
